package com.yunweiweishi.xuhuanpaltform.yuhuan_app.service.imp;

import com.yunweiweishi.xuhuanpaltform.yuhuan_app.dao.RemoteGuideDao;
import com.yunweiweishi.xuhuanpaltform.yuhuan_app.pojo.RemoteGuide;
import com.yunweiweishi.xuhuanpaltform.yuhuan_app.service.RemoteGuideService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Optional;


@Service
@Transactional
public class RemoteGuideServiceImpl implements RemoteGuideService {


    @Autowired
    private RemoteGuideDao remoteGuideDao;



    @Override
    public RemoteGuide findByExpertId(Long expertId) {


        return remoteGuideDao.findByExpertId(expertId);
    }

    @Override
    public Optional<RemoteGuide> findById(Long id) {
        return remoteGuideDao.findById(id);
    }

}
